package uniriotec.dsw.tickets.dao.conexao;

import org.hibernate.Session;

import uniriotec.dsw.tickets.dao.util.HibernateUtil;


public class ConectaHibernatePostgresql {

public ConectaHibernatePostgresql() {
	
	}
public static void main(String[] args) {
	Session sessao = null;

	
	try{
		sessao = HibernateUtil.getSessionFactory().openSession();
		System.out.println("Conectou");
			
		
	}finally{
		sessao.close();
	}

}
	/**
	 * @param args
	 */
	

}
